{% extends 'ProjResManBundle::layout.html.twig' %}

{% block header_menu_login_href %}{% if auth.isAuth == false %}{{ header.menu.login }}{% else %}{{ header.menu.logout }}{% endif %}{% endblock %}
{% block header_menu_login_text %}{% if auth.isAuth == false %}{{ header.text.login }}{% else %}{{ header.text.logout }}{% endif %}{% endblock %}
{% block header_menu_login_user %}{% if auth.isAuth == true %}{{ auth.user }}{% endif %}{% endblock %}
{% block header_menu_login_message %}{% if auth.isAuth == true %}User:{% endif %}{% endblock %}
{% block content -%}
<div id="page_content">
    <div id="submenu">
        <div id="submenu_float1">
            <div id="submenu_float2">
                <ul>
                    {% block submenu -%}
                    {% for item in content.submenu %}
                    <ul class="submenu_option">
                        <a href={{ item.href }}>
                        <li class="submenu_header">{{ item.title }}</li>
                        <li class="submenu_details">{{ item.title_desc }}</li>
                    </a>
                    </ul>
                    {% endfor %}
                    {% endblock %}
                </ul>
            </div>
        </div>
    </div>
        
    <div id="container">
        {% block main_container %}
            <table class="table table-hover">
        <thead>
            <tr>
                <th>Ziua</th>
                <th>Orele</th>
                <th>Frecventa</th>
                <th>Sala</th>
                <th>Anul</th>
                <th>Formatia</th>
                <th>Tipul</th>
                <th>Disciplina</th>
            </tr>
        </thead>
        <tbody>
            {% for row in content.schedule %}
                <tr>
                    <td>{{ row.ziua }}</td>
                    <td>{{ row.ore }}</td>
                    <td>{{ row.frecventa }}</td>
                    <td>{{row.sala }}</td>
                    <td>{{ row.an }}</td>
                    <td>{{ row.formatia }}</td>
                    <td>{{ row.tip }}</td>
                    <td>{{ row.disciplina }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        {% endblock %}
    </div>
</div>

{% endblock %}